package ${package.ServiceImpl};

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import ${package.Mapper}.${entity}Mapper;
import ${package.Entity}.${entity};
import ${package.Entity}.queryvo.${entity}QueryVO;
import ${package.Service}.${entity}Service;

@Service
public class ${entity}ServiceImpl implements ${entity}Service {

@Resource
private ${entity}Mapper mapper;

@Override
public ${entity} findById(Long id) {
return mapper.selectById(id);
}

@Override
public List<${entity}> selectList(${entity}QueryVO queryVo) {
return mapper.selectList(queryVo);
}

@Override
public void insert(${entity} entity) {
mapper.insert(entity);
}

@Override
public void update(${entity} entity) {
mapper.update(entity);
}

@Override
public void deleteById(Long id) {
mapper.deleteById(id);
}
}
